package com.jinzecloud.fiction.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jinzecloud.fiction.utils.PageUtils;
import com.jinzecloud.fiction.utils.Query;
import com.jinzecloud.fiction.mapper.TbBooklistMapper;
import com.jinzecloud.fiction.bean.TbBooklist;
import com.jinzecloud.fiction.service.TbBooklistService;


@Service("tbBooklistService")
public class TbBooklistServiceImpl extends ServiceImpl<TbBooklistMapper, TbBooklist> implements TbBooklistService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TbBooklist> page = this.page(
                new Query<TbBooklist>().getPage(params),
                new QueryWrapper<TbBooklist>()
        );

        return new PageUtils(page);
    }

}